package com.cnunicom.modules.tra.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.cnunicom.common.utils.Constant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Author: dingziyuan
 * @Date: 2020/1/26/026 20:20
 * @Description: *
 */
@Data
public class MebUnitStaffVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "人员表主键")
    @TableId
    private Integer id;

    @ApiModelProperty(value = "关联上级id")
    @NotNull(message = "关联id不能为空")
    private Long superiorId;

    @ApiModelProperty(value = "关联上级名称")
    private String superiorName;

    @ApiModelProperty(value = "类型 0:单位会员 1:职工会员")
    @NotNull(message = "类型不能为空")
    private String type;

    @ApiModelProperty(value = "会员姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "会员手机号")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = Constant.REGULAR_PHONE, message = "手机号格式错误")
    private String mobileNum;

    @ApiModelProperty(value = "生日")
    private String birthday;

    /**
     * 不要搞逻辑删除，因为单位和职员是用sql监听的
     */
    @ApiModelProperty(value = "逻辑删除")
    private Integer isDel;

    @ApiModelProperty(value = "注册时间")
    private String createTime;

    private String def0;

    private String def1;

}
